package com.grademaster.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.grademaster.common.R;
import com.grademaster.dto.GradePageDto;
import com.grademaster.entity.Grades;
import org.springframework.http.ResponseEntity;

/**
* @author Administrator
* @description 针对表【grades(年级表)】的数据库操作Service
* @createDate 2024-06-25 13:57:02
*/
public interface GradesService extends IService<Grades> {
    /**
     * 获取所有年级
     * @return
     */
    R getAllGrades();

    /**
     * 获取所有年级分页
     * @param gradePageDto
     * @return
     */
    R getAllGradesByPage(GradePageDto gradePageDto);

    /**
     * 添加或修改年级
     * @param grades
     * @return
     */
    R addOrEditCollege(Grades grades);

    /**
     * 删除年级
     * @param gradeId
     * @return
     */
    R deleteGrade(String gradeId);

    /**
     * 导出年级信息
     * @param gradePageDto
     * @return
     */
    ResponseEntity exportExcel(GradePageDto gradePageDto);
}
